<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>TCL官方网站</title>
	<link rel="stylesheet" href="common/css/sweet-alert.css"/>
	<link rel="stylesheet" href="common/css/global1.css">
	<link rel="stylesheet" href="common/css/global.css"/>
	<link rel="stylesheet" href="common/css/member1.css">
	<style>
		.sweet-alert p{
			font-family: "微软雅黑";
			font-weight: 700;
			font-size: 20px;
			color: #333;
		}
	</style>
</head>
<body>
	
	<!--crumbs html start-->
	<div class="m_crumbs bg_f0">
		<div class="min-wid">
			<div class="fl"><a href="##">首页</a> / 账户中心</div>
			<a href="##" class="fr">返回个人首页</a>
		</div>
	</div>
	<!--crumbs html end-->
	
	<!--mian html start-->
	<div class="member_mian min-wid m-mt">
		<div class="fl nav_left">
			<h3>账号管理</h3>
			<div class="m_box">
				<a href="##" class="red">我的个人中心</a>
				<a href="##">管理账号和密码</a>
				<a href="##">收货地址管理</a>
				<a href="##">增值税发票管理</a>
				<a href="##">发票管理</a>
				<a href="##">电子发票管理</a>
			</div>
			<h3>订单中心</h3>
			<div class="m_box">
				<a href="##">产品订单</a>
				<a href="##">订单详情</a>
				<a href="##">我的T码</a>
				<a href="##">退款换货管理</a>
				<a href="##">我的收藏</a>
				<a href="##">我的服务</a>
				<a href="##">评价管理</a>
				<a href="##">浏览历史</a>
				<a href="##">我的优惠券</a>
				<a href="##">我的预约</a>
				<a href="##">我的订阅</a>
			</div>
		</div>
		<div class="fr mian_right">
			<div class="m_content">
				<h3>订单详情</h3>	
				<div class="m_customer">
					<!--T币 start-->	
					<div class="T-coin">
						<div class="Tcoin-menu">
							<a class="fl coin active">T币</a>
							<a class="fl order">账单</a>
							<a class="fl reset">重置密码</a>
							<p class="clear"></p>
						</div>	
						
						<!--T币激活及T币充值 start-->
						<div class="wid100 Tcoin-content">
							<div class="Tcoin-activation hidden">
								<div class="activationForm">
									<input type="text" class="inputType1" placeholder="会员手机号码"/>
									<div class="input-group">
										<input type="text" class="inputType2" placeholder="短信验证码"/>
										<button class="sentCode">发送手机验证码</button>
										<div class="clear"></div>
									</div>
									<input type="text" class="inputType1" placeholder="T币支付密码"/>
									<input type="text" class="inputType1" placeholder="再次输入支付密码"/>
									<div class="tips">验证码错误/支付密码不一致</div>
									<button class="activation">激活</button>
								</div>
							</div>
							
							<div class="Tcoin-recharge">
								<div class="rechargeUser">
									1501234211：<span>0</span>币
								</div>
								<div class="rechargeUser-form">
									<div class="rechargeMoney">
										充值金额：<span>*1T币=1元人民币</span>
									</div>
									<div class="wid100">
										<div class="moneyType">
											<div class="type">
												<p class="typeSpecial">500币</p>
												<p class="specialPrice">特价￥480</p>
											</div>
										</div>
										<div class="moneyType">
											<div class="type">￥1000</div>
										</div>
										<div class="moneyType">
											<div class="type">￥2000</div>
										</div>
										<div class="moneyType pr">
											<input type="text" class="type1" placeholder="输入金额" onkeyup="this.value = this.value.replace(/[^\d]/g,'')">
											<div class="moneyBox pa" style="display: none;">
												<div class="triangle-up"></div>
												<span class="words-ellipsis"></span>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<div class="payWay">支付方式</div>
									<div class="payType">
										<div class="way">
											<img src="common/img/zhifubao.jpg"/>
										</div>
										<div class="way">
											<img src="common/img/weixin.jpg"/>
										</div>
										<div class="clear"></div>
									</div>
									<button class="recharge">充值</button>
									<p class="anounce">*T币充值不可提现，不可退款。</p>
								</div>
							</div>
						</div>
						<!--T币激活及T币充值 end-->
						
						<!--账单 start-->
						<div class="bill hidden Tcoin-content">
							<div class="billTime">
								<div class="latest wid20 fl tac active">最近七天</div>
								<div class="latest wid20 fl tac">最近一个月</div>
								<div class="latest wid20 fl tac">最近三个月</div>
								<div class="clear"></div>
							</div>
							<div class="billTitle">
								<div class="wid20 fl tac">操作内容</div>
								<div class="wid20 fl tac">T币金额</div>
								<div class="wid20 fl tac">T币余额</div>
								<div class="wid20 fl tac">支付方式</div>
								<div class="wid20 fl tac">日三生期</div>
								<div class="clear"></div>
							</div>
							<ul class="billContent">
								<li>
									<div class="fl wid20 tac">充值11111</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
							</ul>
							<ul class="billContent" style="display: none;">
								<li>
									<div class="fl wid20 tac">充值22222222</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
							</ul>
							<ul class="billContent" style="display: none;">
								<li>
									<div class="fl wid20 tac">充值333333333</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">购买商品</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">T币支付</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
								<li>
									<div class="fl wid20 tac">充值</div>
									<div class="fl wid20 tac">1000</div>
									<div class="fl wid20 tac">2334</div>
									<div class="fl wid20 tac">支付宝</div>
									<div class="fl wid20 tac">2016/11/11</div>
									<div class="clear"></div>
								</li>
							</ul>
						</div>
						<!--账单 end-->
						
						
						<!--重置密码 start-->
						<div class="wid100 hidden Tcoin-content">
							<div class="resetPw">
								<div class="resetForm">
									<div class="memberNum tal">会员号码：150*****623</div>
									<div class="input-group">
										<input type="text" class="inputType2" placeholder="短信验证码"/>
										<button class="sentCode">发送手机验证码</button>
										<div class="clear"></div>
									</div>
									<input type="text" class="inputType1 setTcoinPw" placeholder="设置T币支付密码"/>
									<input type="text" class="inputType1 resetTcoinPw" placeholder="再次输入支付密码"/>
									<div class="tips hidden">验证码错误/支付密码不一致</div>
									<button class="submit">提交</button>
								</div>
								<div class="resetSuccess hidden">
									<p class="successTips">设置密码成功！</p>
									<div class="memberInfo">
										<p>会员号码：150*****623</p>
										<p>会员密码：QWE256688</p>
									</div>
									<button class="Iknow">我知道了</button>
								</div>
							</div>
						</div>
						<!--重置密码 end-->
					
					</div>
					<!--T币 end-->
				
					
				</div>
			</div>
		</div>
	</div>
	<!--mian html start-->
	
	<!--rechargeModal start-->
	<div class="rechargeModal" style="display: none;">
		<div class="wid100 js-downCount">
			<div class="downCountBox">
				<p>倒计时：<span></span></p>
				<p>正在返回订单结算页···</p>
			</div>	
		</div>
		<div class="wid100 hidden js-reCharge">
			<img src="common/img/scanCode.jpg" class="scanCode"/>
			<a class="closeRechargeModal" href="javascript:void(0);"></a>
		</div>
	</div>
	<!--rechargeModal end-->

</body>
<script type="text/javascript" src="common/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="common/js/sweetalert.min.js"></script>
<script type="text/javascript">
	$(document).ready(function(){  
		//Tcoin-menu控制
		$('.Tcoin-menu a').each(function(index){
			$(this).click(function(){
				$('.Tcoin-menu a').removeClass('active').eq(index).addClass('active');
				$('.Tcoin-content').hide().eq(index).show();
			});
		});
		
		
		//激活按钮
		$('.activation').click(function(){
			var activationResult = false;
			swal({
				title:'',
				text:'激活中···',
				showConfirmButton:false
			});
			setTimeout(function(){
				if(activationResult == true){
					$('.sweet-alert p').html('激活成功！');
				}else if(activationResult == false){
					$('.sweet-alert p').html('激活失败！');
				}
				setTimeout(function(){
					$('.sweet-alert,.sweet-overlay').hide();
				},1500);
			},2000);
		});
		
		//充值选项控制
		$('.type').click(function(){
			$('.type').removeClass('typeSelected');
			$('.type1').removeClass('type1Selected');
			$(this).addClass('typeSelected');
			$('.moneyBox').hide();
		});
		//充值自定义金额
		$('.type1').click(function(){
			if($(this).val() == ''){
				$('.moneyBox span').html('');
			}else{
				var moneyNum = "￥" + $(this).val();
				$('.moneyBox span').html(moneyNum).attr('title',moneyNum);
			}
			$('.type').removeClass('typeSelected');
			$(this).addClass('type1Selected');
			$('.moneyBox').show();
			$(this).on('keyup',function(){
				var moneyNum = "￥" + $(this).val();
				if($(this).val() == ''){
					$('.moneyBox span').html('');
				}else{
					$('.moneyBox span').html(moneyNum).attr('title',moneyNum);
				}	
			});
		}).blur(function(){
			$(this).removeClass('type1Selected');
			$('.moneyBox').hide();
		});
		
		//付款方式选择控制
		$('.way').click(function(){
			$('.way').removeClass('waySelected');
			$(this).addClass('waySelected');
		});
		
		//recharge控制,模拟进入T-coin界面后，获得一个downCount参数，需要倒计时后跳转回T币支付页面
		$('.recharge').click(function(){
			var downCount = true;
			if(downCount == true){
				$('.rechargeModal,.js-downCount').show();
				var downCountTime = 6;
				var decline =  setInterval(function(){
					if(downCountTime > 0){
						downCountTime--;
						$('.js-downCount span').html(downCountTime);
					}else if(downCountTime == 0){
						clearInterval(decline);
						window.location.href = 'T-coinPay.html';
					}
				},1000)
			}else if(downCount == false){
				$('.rechargeModal,.js-reCharge').show();
				$('.closeRechargeModal').click(function(){
					$('.rechargeModal').hide();
				});
			}
		});
		
		//账单近期按钮查询控制
		$('.latest').each(function(index){
			$(this).click(function(){
				$('.billContent').hide().eq(index).show();
				$('.latest').removeClass('active').eq(index).addClass('active');
			});
		});
		
		
		
		//submit以及Iknow按钮控制
		$('.submit').click(function(){
			if($('.setTcoinPw').val() == $('.resetTcoinPw').val()){
				$('.resetForm').addClass('hidden');
				$('.resetSuccess').removeClass('hidden');
				$('.tips').addClass('hidden');
			}else{
				$('.tips').removeClass('hidden');	
			}
		});
		
		$('.Iknow').click(function(){
			$('.resetSuccess').addClass('hidden');
			$('.resetForm').removeClass('hidden');
		});
	});
</script>
</html>